<img src="<?php echo Yii::app()->request->baseUrl.'/themes/fly_high/assets/img/cover/'.$data['user']['cover'];?>" style="width: 99%; border: solid 5px white;box-shadow: 0 1px 2px #ccc;"/>
<?php
	$value = '';
	$user_id = Yii::app()->user->getId();
	$friend_id = $data['user']['id'];

	if($friend_id == $user_id){
		$value ='Thay đổi ảnh Cover';
	}else{
		$value = FriendshipController::getRelation($user_id,$friend_id);
	}
?>
<?php
	if($value == 'Kết bạn'){
		echo '<input type="button" value="'.$value.'" style="background: white; border: 1px solid #646464; padding: 5px; float: right;position: relative; z-index: 2; margin-top: -50px;margin-right: 10px;" id="divSendRequestFriendship'.$friend_id.'" id="btnSendRequestFriendship'.$friend_id.'"  onclick="sendRequestFriendship('.$friend_id.')"/>';
	}else{
		echo '<input type="button" value="'.$value.'" style="background: white; border: 1px solid #646464; padding: 5px; float: right;position: relative; z-index: 2; margin-top: -50px;margin-right: 10px;"/>';
	}
?>